package com.gitee.wsl.collections.bean

class SampleMapEntry<K,V>(override val key: K, override val value: V) :Map.Entry<K,V>{
    constructor(other:Map.Entry<K,V>):this(other.key,other.value)
}

class SampleMutableMapEntry<K,V>(
    override val key: K,
    override var value: V
) :MutableMap.MutableEntry<K,V>{
    constructor(other:Map.Entry<K,V>):this(other.key,other.value)

    override fun setValue(newValue: V): V {
       this.value = newValue
        return newValue
    }

}